<template>
  <div>
    <el-aside width="200px">
       <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
       router
      >
      <el-menu-item index="/home/home">
        <i class="el-icon-menu"></i>
        <span slot="title">后台首页</span>
      </el-menu-item>
      <el-menu-item index="/home/xiang">
        <i class="el-icon-document"></i>
        <span slot="title">相册管理</span>
      </el-menu-item>
      <el-menu-item index="/home/shang">
        <i class="el-icon-setting"></i>
        <span slot="title">商品列表</span>
      </el-menu-item>
    </el-menu>
    </el-aside>
    <el-main><router-view></router-view></el-main>
  </div>
</template>
<script>
export default {
data(){
    return{

    }
}
}
</script>
<style  scoped>
.el-aside {
  text-align: center;
  float: left;
  line-height: 200px;
}
.el-main {
width: 1200px;
height: 560px;
float: left;
}
</style>